<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script src="js/vue.js"></script>

<div id="add">
    <div v-for="(a,i) in array">
        {{i+1}} -- {{a}}
        <br>
    </div>
</div>

<script>
    new Vue({
        el:"#add",
        data:{
            user:{
                age:"20"

            },
            array:["nanji","beijing","dongjing"]
        }

    })
</script>

</body>
</html>